﻿using System;
using System.Windows.Data;

namespace AccessControl.Wpf.Converters
{
	class BoolReverseConverter : IValueConverter
	{
		#region IValueConverter Members

		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			bool bValue = (bool)value;
			return (!bValue);
		}

		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			return null;
		}

		#endregion
	}
}
